package com.ruoyi.app.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 活动管理对象 app_activities
 * 
 * @author ruoyi
 * @date 2025-11-04
 */
public class AppActivities
{
    private static final long serialVersionUID = 1L;

    /** 活动ID */
    private Long id;

    /** 活动标题 */
    @Excel(name = "活动标题")
    private String title;

    /** 活动封面图URL */
    @Excel(name = "活动封面图URL")
    private String coverImage;

    /** 类型 */
    @Excel(name = "类型")
    private Long type;

    /** 发起人/组织 */
    @Excel(name = "发起人/组织")
    private Long organizerId;

    /** 活动人数限制 */
    @Excel(name = "活动人数限制")
    private Long maxParticipants;

    /** 活动地点 */
    @Excel(name = "活动地点")
    private String location;

    /** 活动开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 活动结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 报名截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报名截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registrationDeadline;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String contactPhone;

    /** 活动状态 */
    @Excel(name = "活动状态")
    private Long status;

    /** 活动详情 */
    @Excel(name = "活动详情")
    private String details;

    /** 主办方 */
    @Excel(name = "主办方")
    private Long sponsorType;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setCoverImage(String coverImage) 
    {
        this.coverImage = coverImage;
    }

    public String getCoverImage() 
    {
        return coverImage;
    }

    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    public void setOrganizerId(Long organizerId) 
    {
        this.organizerId = organizerId;
    }

    public Long getOrganizerId() 
    {
        return organizerId;
    }

    public void setMaxParticipants(Long maxParticipants) 
    {
        this.maxParticipants = maxParticipants;
    }

    public Long getMaxParticipants() 
    {
        return maxParticipants;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setRegistrationDeadline(Date registrationDeadline) 
    {
        this.registrationDeadline = registrationDeadline;
    }

    public Date getRegistrationDeadline() 
    {
        return registrationDeadline;
    }

    public void setContactPhone(String contactPhone) 
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone() 
    {
        return contactPhone;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setDetails(String details) 
    {
        this.details = details;
    }

    public String getDetails() 
    {
        return details;
    }

    public void setSponsorType(Long sponsorType) 
    {
        this.sponsorType = sponsorType;
    }

    public Long getSponsorType() 
    {
        return sponsorType;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("coverImage", getCoverImage())
            .append("type", getType())
            .append("organizerId", getOrganizerId())
            .append("maxParticipants", getMaxParticipants())
            .append("location", getLocation())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("registrationDeadline", getRegistrationDeadline())
            .append("contactPhone", getContactPhone())
            .append("status", getStatus())
            .append("details", getDetails())
            .append("sponsorType", getSponsorType())
            .append("createdTime", getCreatedTime())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
